package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.MememberGrowthOrderMoney;
import com.jic.member.response.MemberGrowthOrderResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员等级管理-成长值规则-N次下单-充值赠送表
 * @author : 
 * @email : 
 * @since : 2020-04-10 07:43:17
 * @version : v1.0.0
 */
@Mapper
public interface  MememberGrowthOrderMoneyMapper {

    long insert(MememberGrowthOrderMoney mememberGrowthOrderMoney);

    long delete(Long id);

    long update(MememberGrowthOrderMoney mememberGrowthOrderMoney);

    MememberGrowthOrderMoney queryByPrimaryKey(Long id);

    List<MememberGrowthOrderMoney> query(MememberGrowthOrderMoney mememberGrowthOrderMoney);

    List<MememberGrowthOrderMoney> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberGrowthOrderMoney") MememberGrowthOrderMoney mememberGrowthOrderMoney);

    long queryPageCount(MememberGrowthOrderMoney mememberGrowthOrderMoney);

    long deleteByOrderId(Long id);

    Long getGiveGrowthValById(@Param("id") Long id);

    Long  getSumGiveGrowthValById(@Param("id") Long id);

}